
<div class="col-sm-12">
	<div class="box margin-middle max-width">
		<!-- BOX-BODY -->
		<div class="box-body">
				{{#bs-form formLayout=formLayout model=customerflowdModel invalid=(action "invalid")}}
			<div class="row">
				<div class="col-xs-12">
					<p class="user-add-btn">
						{{#if lookDetail}}
							{{#ui/mix-button class="user-btn times-btn" iconClass="fa fa-undo"  text='返回'
							clickAction="detailCancel" detailCancel="detailCancel" }}
							{{/ui/mix-button}}
						{{else}}
							{{#if detailEdit}}
								{{#ui/mix-button class="user-btn edit-btn" iconClass="fa fa-save"  text='保存'
								clickAction="detailSaveClick" detailSaveClick="detailSaveClick" clickActParams=customerflow}}
								{{/ui/mix-button}}
								{{#ui/mix-button class="user-btn times-btn" iconClass="fa fa-undo"  text='取消'
								clickAction="detailCancel" detailCancel="detailCancel" }}
								{{/ui/mix-button}}
							{{else}}
								{{#ui/mix-button class="user-btn edit-btn" iconClass="fa fa-edit"  text='编辑'
								clickAction="detailEditClick" detailEditClick="detailEditClick" clickActParams=customerflow}}
								{{/ui/mix-button}}
								{{#ui/mix-button class="user-btn times-btn" iconClass="fa fa-undo"  text='返回'
								clickAction="back" back="back" }}
								{{/ui/mix-button}}
								<!-- {{#ui/mix-button class="user-btn trash-btn" iconClass="fa fa-trash-o"  text='删除'
								clickAction="delById" delById="delById"}}
								{{/ui/mix-button}} -->
							{{/if}}
						{{/if}}
					</p>
				</div>
				<!-- 列表详细介绍 -->
				<div class="col-xs-12 nopadding-left">
					<div class="col-xs-12 nopadding-horizontal mt20">
						<div class="col-xs-12 col-sm-6">
							<div class="form-input-group">
							<span class="input-group-addon">老人姓名：</span>
              {{#if detailEdit}}
                {{#bs-form-element class="inline-block form-input-group" controlType="customer"  property="customer" }}
                  {{#power-select class="input-group-content" placeholder='老人姓名' options=customerList  selected=customerflow searchField="namePinyin"
                  noMatchesMessage="没有相关内容"	allowClear=false	onchange=(action "selectOldman" ) as |name|}}
                    {{name.cusName}}
                  {{/power-select}}
                  {{/bs-form-element}}
              {{else}}
              <div class="input-group-content">{{customerflow.customer.name}}</div>
              {{/if}}
							</div>
						</div>

            <div class="col-xs-12 col-sm-6">
							<div class="form-input-group">
							<span class="input-group-addon">身份证号：</span>
              	<div class="input-group-content">{{customerflow.customer.cardCode}}</div>
							</div>
						</div>
						<div class="col-xs-12 col-sm-6">
							<div class="form-input-group">
								<span class="input-group-addon">床位信息：</span>
                  <div class="input-group-content">{{customerflow.customer.bed.name}}</div>
							</div>
						</div>

						<div class="col-xs-12 col-sm-6">
							<div class="form-input-group">
							<span class="input-group-addon">登记人：</span>
              {{#if detailEdit}}
              {{#bs-form-element class="inline-block form-input-group" controlType="leaveStaff"  property="leaveStaff" }}
                {{#power-select class="input-group-content" placeholder='登记人' options=userList  selected=defaultName searchField="namePinyin"
                noMatchesMessage="没有相关内容"	allowClear=false	onchange=(action "selectName" ) as |name|}}
                  {{name.name}}
                {{/power-select}}
                {{/bs-form-element}}
                {{else}}
									<div class="input-group-content">{{customerflow.customer.name}}</div>
								{{/if}}
							</div>

						</div>


						<div class="col-xs-12 col-sm-6">
							<div class="form-input-group">
							<span class="input-group-addon">登记日期：</span>
							{{#if lookDetail}}
								<div class="input-group-content">{{customerflowdModel.leaveRecordDateString}}</div>
							{{else}}
								{{#if detailEdit}}
								{{#bs-form-element class="inline-block form-input-group" controlType="leaveRecordDate"  property="leaveRecordDate" }}
										{{ui/addon/bs-datetimepicker date=customerflowdModel.theLeaveRecordDate  placeholder="登记日期"
										locale="zh-CN" iconClasses="fa fa-calendar" format='YYYY-MM-DD' value=customerflowdModel.theLeaveRecordDate
										show="dpShowAction" change="changeAction" }}
									{{/bs-form-element}}
									{{else}}
									<div class="input-group-content">{{customerflowdModel.leaveRecordDateString}}</div>
								{{/if}}
							{{/if}}
							</div>

						</div>

						<div class="col-xs-12 col-sm-6">
							<div class="form-input-group">
							<span class="input-group-addon">退住日期：</span>
							{{#if lookDetail}}
								<div class="input-group-content">{{customerflowdModel.leaveDateString}}</div>
							{{else}}
								{{#if detailEdit}}
									{{#bs-form-element class="inline-block form-input-group" controlType="leaveDate"  property="leaveDate" }}
						      {{ui/addon/bs-datetimepicker date=customerflowdModel.theLeaveDate placeholder="退住日期"
		              locale="zh-CN" iconClasses="fa fa-calendar" format='YYYY-MM-DD' value=customerflowdModel.theLeaveDate
		               show="dpShowAction" change="changeLeaveAction" }}
									 {{/bs-form-element}}
								{{else}}
									<div class="input-group-content">{{customerflowdModel.leaveDateString}}</div>
							 	{{/if}}
							{{/if}}
							</div>
						</div>

						<div class="col-xs-12 col-sm-12">
							<div class="form-input-group">
								<span class="input-group-addon">备&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;注：</span>
								{{#if lookDetail}}
									<div class="input-group-content">{{customerflow.leaveRemark}}</div>
								{{else}}
									{{#if detailEdit}}
										{{textarea type="text" class="full-width inline-block form-input-group
		                 label-normal form-control" value=customerflow.leaveRemark placeholder='备注'}}
									{{else}}
										<div class="input-group-content">{{customerflow.leaveRemark}}</div>
									{{/if}}
								{{/if}}
							</div>

						</div>

					</div>
				</div>
				<!-- 列表详细介绍 -->
			</div>
{{/bs-form}}

		</div>
		<!-- /BOX-BODY -->
	</div>
</div>
